package com.taoyun.service;

import com.obs.services.model.PutObjectResult;

import com.taoyun.utils.Response;

import java.io.IOException;
import java.util.List;

/**
 * obs操作
 *
 * @author FengJingdong
 */
public interface IObsService {

    String deleteObjects(List<String> objectNames);

    boolean deleteObject(String objectName);

    String copyObject(String sobjectName,String dobjectName);

    String moveObject(String sobjectName,String dobjectName);

    void renameObjects(String objectName,String newObjectName);

    String getObjectLink(long expireSeconds,String objectName);

    void createFileSystem(String bucketName) throws IOException;

    Response downloadfile(String bucketName, String objectNames, String fileLocatePrefix) throws IOException;

    String shareobject(String url,String dobject);

    void downloadprogress(String bucketName,String objectName) throws IOException;

    void uploadprogress(String bucketName,String objectName) throws IOException;

    void showobjectName(String bucketName,String objectName) throws IOException;

    Boolean putObject(String objectName, String author, String type, Integer userId) throws IOException;

    int delete_Obsobject(String objectName);

    List<String> getDownloadLink(List<String> objectNames);
}
